package csel.view;

import javax.swing.ImageIcon;
import javax.swing.JToggleButton;
import csel.model.items.EquippableItem;

public class EquippableItemButton extends JToggleButton
{
	private EquippableItem item;
	private int price;
	
	public EquippableItemButton(EquippableItem item){
		super(new ImageIcon(RepresentationFactory.getInstance().get(item).getSimpleImage()));
		this.item = item;
		price = item.getFlexPrice();
	}
	public EquippableItem getEquippableItem(){
		return item;
	}
	public String getPrice(){
		return ""+price;
	}
	
}
